var https = require('https');
var options = {
  hostname: '127.0.0.1',
  port: 3000,
  path: '/',
  rejectUnauthorized : false,
  method: 'GET'
};
https.get(options, function (res) {
    console.log('statusCode: ', res.statusCode);
    console.log('headers: ', res.headers);

    res.on('data', function (d) {
        process.stdout.write(d);
    });

}).on('error', function (e) {
    console.error(e);
});